<!DOCTYPE HTML>
<html lang="zh">
<head>
<title>Nginx 中文文档 - Module ngx_http_status_module | Docs4dev</title>
<meta charset="UTF-8">
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
<meta name="description" content="Nginx (engine x) 是一个高性能的HTTP和反向代理服务，也是一个IMAP/POP3/SMTP服务。">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="HandheldFriendly" content="true">
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta property="og:type" content="website">
<meta property="og:title" content="Nginx 中文文档 - Module ngx_http_status_module">
<meta property="og:url" content="https://www.docs4dev.com/docs/zh/nginx/current/reference/http-ngx_http_status_module.html">
<meta property="og:site_name" content="Docs4dev">
<meta property="og:locale" content="zh_CN">
<meta name="twitter:card" content="Nginx (engine x) 是一个高性能的HTTP和反向代理服务，也是一个IMAP/POP3/SMTP服务。">
<meta name="generator" content="Docs4dev template engine">
<link rel="stylesheet" href="static/css/app.min.css">
<link rel="shortcut icon" href="https://www.docs4dev.com/static/images/favicon.ico" type="image/x-icon">
<script async="" src="static/js/js.js"></script>
<script async="" src="static/js/adsbygoogle.js" crossorigin="anonymous"></script>
<script>
    window.dataLayer = window.dataLayer || [];

    function gtag() {
      dataLayer.push(arguments);
    }

    gtag('js', new Date());
    gtag('config', 'UA-129571937-1');
  </script>
<link rel="amphtml" href="https://www.docs4dev.com/amp/docs/zh/nginx/current/reference/http-ngx_http_status_module.html">
<script type="application/ld+json">{"name":null,"headline":"Nginx 中文文档-Module ngx_http_status_module","inLanguage":"zh-CN","version":"current","image":"/static/icon/icon-nginx.svg","datePublished":"2021-05-20T12:51:01Z","dateCreated":"2021-05-20T12:51:01Z","dateModified":"2021-07-07T12:48:29Z","@context":"https://schema.org/","@type":"APIReference","abstract":"Nginx (engine x) 是一个高性能的HTTP和反向代理服务，也是一个IMAP/POP3/SMTP服务。"}</script>
</head>
<body>
<div class="book with-summary">
<div class="book-summary">
<div class="logo">
<a href="index.html" style="color: inherit;">
<img src="static/picture/icon-nginx.svg" style="width: 48px; height: 48px;" alt="Logo">
</a>
<b style="color: inherit; margin-left: 8px;">Nginx 中文文档</b>
</div>
<div class="item">
<div>
<label for="version">版本</label>
<select id="version" onchange="onVersionChange(this)">
<option value="current" selected="selected">current</option>
</select>
</div>
<div style="margin-top: 8px;">
<label for="language">语言</label>
<select id="language" onchange="onLangChange(this)" value="zh">
<option value="en">English</option>
<option value="zh" selected="selected">中文</option>
</select>
</div>

</div>
<div class="item menus">
<a title="Table of Contents" style="margin-right: 8px;" href="index.html">
<i class="fa fa-chevron-left"></i>
<span style="margin-left: 2px;">返回目录</span>
</a>
</div>
<nav role="navigation" id="navigation">
<ul class="summary">
<li class="chapter"> <a href="install.html" title="Introduction"> Introduction </a>
<ul class="articles">
<li class="chapter"> <a href="install.html" title="Installing nginx"> Installing nginx </a> </li>
<li class="chapter"> <a href="configure.html" title="从源代码构建  Nginx"> 从源代码构建 Nginx </a> </li>
<li class="chapter"> <a href="beginners_guide.html" title="Beginner's Guide"> Beginner's Guide </a> </li>
<li class="chapter"> <a href="control.html" title="Controlling nginx"> Controlling nginx </a> </li>
<li class="chapter"> <a href="events.html" title="连接处理方法"> 连接处理方法 </a> </li>
<li class="chapter"> <a href="hash.html" title="设置哈希"> 设置哈希 </a> </li>
<li class="chapter"> <a href="debugging_log.html" title="调试日志"> 调试日志 </a> </li>
<li class="chapter"> <a href="syslog.html" title="记录到系统日志"> 记录到系统日志 </a> </li>
<li class="chapter"> <a href="syntax.html" title="配置文件测量单位"> 配置文件测量单位 </a> </li>
<li class="chapter"> <a href="switches.html" title="Command-line parameters"> Command-line parameters </a> </li>
<li class="chapter"> <a href="windows.html" title="Windows 版  Nginx"> Windows 版 Nginx </a> </li>
<li class="chapter"> <a href="http-request_processing.html" title="Nginx 如何处理请求"> Nginx 如何处理请求 </a> </li>
<li class="chapter"> <a href="http-server_names.html" title="Server names"> Server names </a> </li>
<li class="chapter"> <a href="http-load_balancing.html" title="使用  Nginx 作为  HTTP 负载均衡器"> 使用 Nginx 作为 HTTP 负载均衡器 </a> </li>
<li class="chapter"> <a href="http-configuring_https_servers.html" title="配置  HTTPS 服务器"> 配置 HTTPS 服务器 </a> </li>
<li class="chapter"> <a href="stream-stream_processing.html" title="Nginx 如何处理  TCP/UDP 会话"> Nginx 如何处理 TCP/UDP 会话 </a> </li>
<li class="chapter"> <a href="njs-index.html" title="用  njs 编写脚本"> 用 njs 编写脚本 </a> </li>
</ul> </li>
<li class="chapter"> <a href="howto_build_on_win32.html" title="How-To"> How-To </a>
<ul class="articles">
<li class="chapter"> <a href="howto_build_on_win32.html" title="使用  Visual C 在  Win32 平台上构建  Nginx"> 使用 Visual C 在 Win32 平台上构建 Nginx </a> </li>
<li class="chapter"> <a href="nginx_dtrace_pid_provider.html" title="使用  DTrace pid 提供程序调试  nginx"> 使用 DTrace pid 提供程序调试 nginx </a> </li>
<li class="chapter"> <a href="http-converting_rewrite_rules.html" title="转换重写规则"> 转换重写规则 </a> </li>
<li class="chapter"> <a href="http-websocket.html" title="WebSocket proxying"> WebSocket proxying </a> </li>
</ul> </li>
<li class="chapter"> <a href="contributing_changes.html" title="Development"> Development </a>
<ul class="articles">
<li class="chapter"> <a href="contributing_changes.html" title="Contributing Changes"> Contributing Changes </a> </li>
<li class="chapter"> <a href="dev-development_guide.html" title="Development guide"> Development guide </a> </li>
</ul> </li>
<li class="chapter"> <a href="dirindex.html" title="Modules reference"> Modules reference </a>
<ul class="articles">
<li class="chapter"> <a href="dirindex.html" title="指令的字母索引"> 指令的字母索引 </a> </li>
<li class="chapter"> <a href="varindex.html" title="变量按字母顺序索引"> 变量按字母顺序索引 </a> </li>
<li class="chapter"> <a href="ngx_core_module.html" title="Core functionality"> Core functionality </a> </li>
<li class="chapter"> <a href="http-ngx_http_core_module.html" title="ngx_http_core_module"> ngx_http_core_module </a> </li>
<li class="chapter"> <a href="http-ngx_http_access_module.html" title="ngx_http_access_module"> ngx_http_access_module </a> </li>
<li class="chapter"> <a href="http-ngx_http_addition_module.html" title="ngx_http_addition_module"> ngx_http_addition_module </a> </li>
<li class="chapter"> <a href="http-ngx_http_api_module.html" title="ngx_http_api_module"> ngx_http_api_module </a> </li>
<li class="chapter"> <a href="http-ngx_http_auth_basic_module.html" title="ngx_http_auth_basic_module"> ngx_http_auth_basic_module </a> </li>
<li class="chapter"> <a href="http-ngx_http_auth_jwt_module.html" title="ngx_http_auth_jwt_module"> ngx_http_auth_jwt_module </a> </li>
<li class="chapter"> <a href="http-ngx_http_auth_request_module.html" title="ngx_http_auth_request_module"> ngx_http_auth_request_module </a> </li>
<li class="chapter"> <a href="http-ngx_http_autoindex_module.html" title="ngx_http_autoindex_module"> ngx_http_autoindex_module </a> </li>
<li class="chapter"> <a href="http-ngx_http_browser_module.html" title="ngx_http_browser_module"> ngx_http_browser_module </a> </li>
<li class="chapter"> <a href="http-ngx_http_charset_module.html" title="ngx_http_charset_module"> ngx_http_charset_module </a> </li>
<li class="chapter"> <a href="http-ngx_http_dav_module.html" title="ngx_http_dav_module"> ngx_http_dav_module </a> </li>
<li class="chapter"> <a href="http-ngx_http_empty_gif_module.html" title="ngx_http_empty_gif_module"> ngx_http_empty_gif_module </a> </li>
<li class="chapter"> <a href="http-ngx_http_f4f_module.html" title="ngx_http_f4f_module"> ngx_http_f4f_module </a> </li>
<li class="chapter"> <a href="http-ngx_http_fastcgi_module.html" title="ngx_http_fastcgi_module"> ngx_http_fastcgi_module </a> </li>
<li class="chapter"> <a href="http-ngx_http_flv_module.html" title="ngx_http_flv_module"> ngx_http_flv_module </a> </li>
<li class="chapter"> <a href="http-ngx_http_geo_module.html" title="ngx_http_geo_module"> ngx_http_geo_module </a> </li>
<li class="chapter"> <a href="http-ngx_http_geoip_module.html" title="ngx_http_geoip_module"> ngx_http_geoip_module </a> </li>
<li class="chapter"> <a href="http-ngx_http_grpc_module.html" title="ngx_http_grpc_module"> ngx_http_grpc_module </a> </li>
<li class="chapter"> <a href="http-ngx_http_gunzip_module.html" title="ngx_http_gunzip_module"> ngx_http_gunzip_module </a> </li>
<li class="chapter"> <a href="http-ngx_http_gzip_module.html" title="ngx_http_gzip_module"> ngx_http_gzip_module </a> </li>
<li class="chapter"> <a href="http-ngx_http_gzip_static_module.html" title="ngx_http_gzip_static_module"> ngx_http_gzip_static_module </a> </li>
<li class="chapter"> <a href="http-ngx_http_headers_module.html" title="ngx_http_headers_module"> ngx_http_headers_module </a> </li>
<li class="chapter"> <a href="http-ngx_http_hls_module.html" title="ngx_http_hls_module"> ngx_http_hls_module </a> </li>
<li class="chapter"> <a href="http-ngx_http_image_filter_module.html" title="ngx_http_image_filter_module"> ngx_http_image_filter_module </a> </li>
<li class="chapter"> <a href="http-ngx_http_index_module.html" title="ngx_http_index_module"> ngx_http_index_module </a> </li>
<li class="chapter"> <a href="http-ngx_http_js_module.html" title="ngx_http_js_module"> ngx_http_js_module </a> </li>
<li class="chapter"> <a href="http-ngx_http_keyval_module.html" title="ngx_http_keyval_module"> ngx_http_keyval_module </a> </li>
<li class="chapter"> <a href="http-ngx_http_limit_conn_module.html" title="ngx_http_limit_conn_module"> ngx_http_limit_conn_module </a> </li>
<li class="chapter"> <a href="http-ngx_http_limit_req_module.html" title="ngx_http_limit_req_module"> ngx_http_limit_req_module </a> </li>
<li class="chapter"> <a href="http-ngx_http_log_module.html" title="ngx_http_log_module"> ngx_http_log_module </a> </li>
<li class="chapter"> <a href="http-ngx_http_map_module.html" title="ngx_http_map_module"> ngx_http_map_module </a> </li>
<li class="chapter"> <a href="http-ngx_http_memcached_module.html" title="ngx_http_memcached_module"> ngx_http_memcached_module </a> </li>
<li class="chapter"> <a href="http-ngx_http_mirror_module.html" title="ngx_http_mirror_module"> ngx_http_mirror_module </a> </li>
<li class="chapter"> <a href="http-ngx_http_mp4_module.html" title="ngx_http_mp4_module"> ngx_http_mp4_module </a> </li>
<li class="chapter"> <a href="http-ngx_http_perl_module.html" title="ngx_http_perl_module"> ngx_http_perl_module </a> </li>
<li class="chapter"> <a href="http-ngx_http_proxy_module.html" title="ngx_http_proxy_module"> ngx_http_proxy_module </a> </li>
<li class="chapter"> <a href="http-ngx_http_random_index_module.html" title="ngx_http_random_index_module"> ngx_http_random_index_module </a> </li>
<li class="chapter"> <a href="http-ngx_http_realip_module.html" title="ngx_http_realip_module"> ngx_http_realip_module </a> </li>
<li class="chapter"> <a href="http-ngx_http_referer_module.html" title="ngx_http_referer_module"> ngx_http_referer_module </a> </li>
<li class="chapter"> <a href="http-ngx_http_rewrite_module.html" title="ngx_http_rewrite_module"> ngx_http_rewrite_module </a> </li>
<li class="chapter"> <a href="http-ngx_http_scgi_module.html" title="ngx_http_scgi_module"> ngx_http_scgi_module </a> </li>
<li class="chapter"> <a href="http-ngx_http_secure_link_module.html" title="ngx_http_secure_link_module"> ngx_http_secure_link_module </a> </li>
<li class="chapter"> <a href="http-ngx_http_session_log_module.html" title="ngx_http_session_log_module"> ngx_http_session_log_module </a> </li>
<li class="chapter"> <a href="http-ngx_http_slice_module.html" title="ngx_http_slice_module"> ngx_http_slice_module </a> </li>
<li class="chapter"> <a href="http-ngx_http_spdy_module.html" title="ngx_http_spdy_module"> ngx_http_spdy_module </a> </li>
<li class="chapter"> <a href="http-ngx_http_split_clients_module.html" title="ngx_http_split_clients_module"> ngx_http_split_clients_module </a> </li>
<li class="chapter"> <a href="http-ngx_http_ssi_module.html" title="ngx_http_ssi_module"> ngx_http_ssi_module </a> </li>
<li class="chapter"> <a href="http-ngx_http_ssl_module.html" title="ngx_http_ssl_module"> ngx_http_ssl_module </a> </li>
<li class="chapter"> <a href="" title="ngx_http_status_module"> ngx_http_status_module </a> </li>
<li class="chapter"> <a href="http-ngx_http_stub_status_module.html" title="ngx_http_stub_status_module"> ngx_http_stub_status_module </a> </li>
<li class="chapter"> <a href="http-ngx_http_sub_module.html" title="ngx_http_sub_module"> ngx_http_sub_module </a> </li>
<li class="chapter"> <a href="http-ngx_http_upstream_module.html" title="ngx_http_upstream_module"> ngx_http_upstream_module </a> </li>
<li class="chapter"> <a href="http-ngx_http_upstream_conf_module.html" title="ngx_http_upstream_conf_module"> ngx_http_upstream_conf_module </a> </li>
<li class="chapter"> <a href="http-ngx_http_upstream_hc_module.html" title="ngx_http_upstream_hc_module"> ngx_http_upstream_hc_module </a> </li>
<li class="chapter"> <a href="http-ngx_http_userid_module.html" title="ngx_http_userid_module"> ngx_http_userid_module </a> </li>
<li class="chapter"> <a href="http-ngx_http_uwsgi_module.html" title="ngx_http_uwsgi_module"> ngx_http_uwsgi_module </a> </li>
<li class="chapter"> <a href="http-ngx_http_v2_module.html" title="ngx_http_v2_module"> ngx_http_v2_module </a> </li>
<li class="chapter"> <a href="http-ngx_http_xslt_module.html" title="ngx_http_xslt_module"> ngx_http_xslt_module </a> </li>
<li class="chapter"> <a href="mail-ngx_mail_core_module.html" title="ngx_mail_core_module"> ngx_mail_core_module </a> </li>
<li class="chapter"> <a href="mail-ngx_mail_auth_http_module.html" title="ngx_mail_auth_http_module"> ngx_mail_auth_http_module </a> </li>
<li class="chapter"> <a href="mail-ngx_mail_proxy_module.html" title="ngx_mail_proxy_module"> ngx_mail_proxy_module </a> </li>
<li class="chapter"> <a href="mail-ngx_mail_ssl_module.html" title="ngx_mail_ssl_module"> ngx_mail_ssl_module </a> </li>
<li class="chapter"> <a href="mail-ngx_mail_imap_module.html" title="ngx_mail_imap_module"> ngx_mail_imap_module </a> </li>
<li class="chapter"> <a href="mail-ngx_mail_pop3_module.html" title="ngx_mail_pop3_module"> ngx_mail_pop3_module </a> </li>
<li class="chapter"> <a href="mail-ngx_mail_smtp_module.html" title="ngx_mail_smtp_module"> ngx_mail_smtp_module </a> </li>
<li class="chapter"> <a href="stream-ngx_stream_core_module.html" title="ngx_stream_core_module"> ngx_stream_core_module </a> </li>
<li class="chapter"> <a href="stream-ngx_stream_access_module.html" title="ngx_stream_access_module"> ngx_stream_access_module </a> </li>
<li class="chapter"> <a href="stream-ngx_stream_geo_module.html" title="ngx_stream_geo_module"> ngx_stream_geo_module </a> </li>
<li class="chapter"> <a href="stream-ngx_stream_geoip_module.html" title="ngx_stream_geoip_module"> ngx_stream_geoip_module </a> </li>
<li class="chapter"> <a href="stream-ngx_stream_js_module.html" title="ngx_stream_js_module"> ngx_stream_js_module </a> </li>
<li class="chapter"> <a href="stream-ngx_stream_keyval_module.html" title="ngx_stream_keyval_module"> ngx_stream_keyval_module </a> </li>
<li class="chapter"> <a href="stream-ngx_stream_limit_conn_module.html" title="ngx_stream_limit_conn_module"> ngx_stream_limit_conn_module </a> </li>
<li class="chapter"> <a href="stream-ngx_stream_log_module.html" title="ngx_stream_log_module"> ngx_stream_log_module </a> </li>
<li class="chapter"> <a href="stream-ngx_stream_map_module.html" title="ngx_stream_map_module"> ngx_stream_map_module </a> </li>
<li class="chapter"> <a href="stream-ngx_stream_proxy_module.html" title="ngx_stream_proxy_module"> ngx_stream_proxy_module </a> </li>
<li class="chapter"> <a href="stream-ngx_stream_realip_module.html" title="ngx_stream_realip_module"> ngx_stream_realip_module </a> </li>
<li class="chapter"> <a href="stream-ngx_stream_return_module.html" title="ngx_stream_return_module"> ngx_stream_return_module </a> </li>
<li class="chapter"> <a href="stream-ngx_stream_split_clients_module.html" title="ngx_stream_split_clients_module"> ngx_stream_split_clients_module </a> </li>
<li class="chapter"> <a href="stream-ngx_stream_ssl_module.html" title="ngx_stream_ssl_module"> ngx_stream_ssl_module </a> </li>
<li class="chapter"> <a href="stream-ngx_stream_ssl_preread_module.html" title="ngx_stream_ssl_preread_module"> ngx_stream_ssl_preread_module </a> </li>
<li class="chapter"> <a href="stream-ngx_stream_upstream_module.html" title="ngx_stream_upstream_module"> ngx_stream_upstream_module </a> </li>
<li class="chapter"> <a href="stream-ngx_stream_upstream_hc_module.html" title="ngx_stream_upstream_hc_module"> ngx_stream_upstream_hc_module </a> </li>
<li class="chapter"> <a href="stream-ngx_stream_zone_sync_module.html" title="ngx_stream_zone_sync_module"> ngx_stream_zone_sync_module </a> </li>
<li class="chapter"> <a href="ngx_google_perftools_module.html" title="ngx_google_perftools_module"> ngx_google_perftools_module </a> </li>
</ul> </li>
</ul>
</nav>
</div>
<div class="book-body">
<div class="body-inner">
<header class="book-header">
<div class="dropdown pull-right js-toolbar-action">
<a class="btn toggle-dropdown" aria-label="Language" href="#">
<i class="fa fa-globe"></i>
</a>
<div class="dropdown-menu dropdown-left">
<div class="dropdown-caret"><span class="caret-outer"></span><span class="caret-inner"></span></div>
<div class="buttons">
<button class="button size-1" onclick="changeLang('zh_CN')">中文</button>
</div>
<div class="buttons">
<button class="button size-1" onclick="changeLang('en_US')">English</button>
</div>
</div>
</div>
<a class="btn pull-right js-toolbar-action non-mobile" aria-label="Sign up" href="register.html">
<i class="fa fa-sign-in"></i> <span>注册</span>
 </a>
<a class="btn pull-right js-toolbar-action non-mobile" aria-label="Sign in" href="register.html">
<i class="fa fa-sign-in"></i>
<span>登录</span>
</a>
<a class="btn pull-left js-toolbar-action btn-summary" href="#"><i class="fa fa-align-justify"></i></a>
<div class="dropdown pull-left font-settings js-toolbar-action">
<a class="btn toggle-dropdown" aria-label="Font Settings" href="#">
<i class="fa fa-font"></i>
</a>
<div class="dropdown-menu dropdown-right">
<div class="dropdown-caret"><span class="caret-outer"></span><span class="caret-inner"></span></div>
<div class="buttons">
<button class="button size-2 font-reduce">A</button>
<button class="button size-2 font-enlarge">A</button>
</div>
<div class="buttons">
<button class="button size-2 family-serif">Serif</button>
<button class="button size-2 family-sans">Sans</button>
</div>
<div class="buttons">
<button class="button size-3 theme-white">White</button>
<button class="button size-3 theme-sepia">Sepia</button>
<button class="button size-3 theme-night">Night</button>
</div>
</div>
</div>
<a class="btn pull-left js-toolbar-action non-mobile" aria-label="Home" href="zh.html">
<i class="fa fa-home"></i> <span>首页</span>
</a>
<a class="btn pull-left js-toolbar-action non-mobile" aria-label="Guide" href="javascript:window.open('https://www.javadoc.org/');">
<i class="fa fa-book"></i> <span>API Docs</span>
</a>
<a class="btn pull-left js-toolbar-action non-mobile" aria-label="Tools" href="index1.html">
<i class="fa fa-gears"></i> <span>工具</span>
</a>
<div class="dropdown pull-left js-toolbar-action mobile">
<a class="btn toggle-dropdown" aria-label="Language" href="#">
<i class="fa fa-chevron-down"></i>
</a>
<div class="dropdown-menu dropdown-right">
<div class="dropdown-caret"><span class="caret-outer"></span><span class="caret-inner"></span></div>
<div class="buttons">
<a class="button size-1" aria-label="Home" href="zh.html">
<i class="fa fa-home"></i> <span>首页</span>
</a>
</div>
<div class="buttons">
<a class="button size-1" aria-label="Guide" href="javascript:window.open('https://www.javadoc.org/');">
<i class="fa fa-book"></i> <span>API Docs</span>
</a>
</div>
<div class="buttons">
<a class="button size-1" aria-label="Tools" href="index1.html">
<i class="fa fa-gears"></i> <span>工具</span>
</a>
</div>
</div>
</div>
<div id="autocomplete" class="pull-right"></div>
<span id="toolbar-title"></span>
</header>
<div class="page-wrapper" tabindex="-1" role="main">
<div class="page-inner">
<section class="normal markdown-section">
<div id="content">
<h1>Module ngx_http_status_module</h1>
<div><ins class="adsbygoogle" style="display:block; text-align:center;" data-ad-layout="in-article" data-ad-format="fluid" data-ad-client="ca-pub-6108808167664152" data-ad-slot="6964403648"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script></div>
<div><ul>
<li><a href="#example">Example Configuration</a></li>
<li><a href="#directives">Directives</a>
<ul>
<li><a href="#status">status</a></li>
<li><a href="#status_format">status_format</a></li>
<li><a href="#status_zone">status_zone</a></li>
</ul>
</li>
<li><a href="#data">Data</a></li>
<li><a href="#compatibility">Compatibility</a><br><a href="" id="summary"></a></li>
</ul>
<p><code>ngx_http_status_module</code>模块提供对各种状态信息的访问。</p>
<div class="alert callout info"><p class="title"><i class="fa fa-info-circle"></i>Note</p><div><p>在 1.13.10 之前，此模块是我们<a href="javascript:window.open('https://nginx.com/products/');" target="_blank" rel="noopener noreferrer">commercial subscription</a>的一部分。在 1.13.3 中已被<a href="http-ngx_http_api_module.html">ngx_http_api_module</a>模块取代。</p>
</div></div>
<p><a href="" id="example"></a></p>
<h4 id="example-configuration"><a href="#example-configuration" id="example-configuration"></a>Example Configuration</h4>
<pre><code class="hljs language-shell">http {
    upstream backend {
        zone http_backend 64k;

        server backend1.example.com weight=5;
        server backend2.example.com;
    }

    proxy_cache_path /data/nginx/cache_backend keys_zone=cache_backend:10m;

    server {
        server_name backend.example.com;

        location / {
            proxy_pass  http://backend;
            proxy_cache cache_backend;

            health_check;
        }

        status_zone server_backend;
    }

    server {
        listen 127.0.0.1;

        location /upstream_conf {
            upstream_conf;
        }

        location /status {
            status;
        }

        location = /status.html {
        }
    }
}

stream {
    upstream backend {
        zone stream_backend 64k;

        server backend1.example.com:12345 weight=5;
        server backend2.example.com:12345;
    }

    server {
        listen      127.0.0.1:12345;
        proxy_pass  backend;
        status_zone server_backend;
        health_check;
    }
}
</code></pre>
<p>使用此配置的状态请求示例：</p>
<pre><code class="hljs language-shell">http://127.0.0.1/status
http://127.0.0.1/status/nginx_version
http://127.0.0.1/status/caches/cache_backend
http://127.0.0.1/status/upstreams
http://127.0.0.1/status/upstreams/backend
http://127.0.0.1/status/upstreams/backend/peers/1
http://127.0.0.1/status/upstreams/backend/peers/1/weight
http://127.0.0.1/status/stream
http://127.0.0.1/status/stream/upstreams
http://127.0.0.1/status/stream/upstreams/backend
http://127.0.0.1/status/stream/upstreams/backend/peers/1
http://127.0.0.1/status/stream/upstreams/backend/peers/1/weight
</code></pre>
<p>此发行版随附了简单的监视页面，在默认配置中，该页面可通过“ <code>/status.html</code>”访问。它要求如上所示配置位置“ <code>/status</code>”和“ <code>/status.html</code>”。</p>
<p><a href="" id="directives"></a></p>
<h4 id="directives"><a href="#directives" id="directives"></a>Directives</h4>
<p><a href="" id="status"></a></p>
<table>
<thead></thead>
<tbody>
<tr><td>Syntax:</td><td><code>status;</code></td></tr>
<tr><td>Default:</td><td>—</td></tr>
<tr><td>Context:</td><td><code>location</code></td></tr>
</tbody>
</table>
<p>可以从周围位置访问状态信息。可以访问此位置<a href="http-ngx_http_core_module.html#satisfy">limited</a>。</p>
<p><a href="" id="status_format"></a></p>
<table>
<thead></thead>
<tbody>
<tr><td>Syntax:</td><td><code>status_format json;</code></td></tr>
<tr><td><br><code>status_format jsonp [callback];</code></td></tr>
<tr><td>默认值：</td><td><code>status_format json;</code></td></tr>
<tr><td>上下文： <code>http</code>，<code>server</code>，<code>location</code></td></tr>
</tbody>
</table>
<p>默认情况下，状态信息以 JSON 格式输出。</p>
<p>或者，数据可以作为 JSONP 输出。 <code>callback</code>参数指定回调函数的名称。参数值可以包含变量。如果省略参数，或者计算值是一个空字符串，则使用“ <code>ngx_status_jsonp_callback</code>”。</p>
<p><a href="" id="status_zone"></a></p>
<table>
<thead></thead>
<tbody>
<tr><td>Syntax:</td><td><code>status_zone zone;</code></td></tr>
<tr><td>Default:</td><td>—</td></tr>
<tr><td>Context:</td><td><code>server</code></td></tr>
</tbody>
</table>
<p>允许在指定的<code>zone</code>中收集虚拟<a href="http-ngx_http_core_module.html#server">http</a>或<a href="stream-ngx_stream_core_module.html#server">stream</a>(1.7.11)服务器状态信息。多个服务器可以共享同一区域。</p>
<p><a href="" id="data"></a></p>
<h4 id="data"><a href="#data" id="data"></a>Data</h4>
<p>提供以下状态信息：</p>
<h4 id="version"><a href="#version" id="version"></a> version</h4>
<ul>
<li>
<p>提供的数据集的版本。当前版本是 8.</p>
</li>
<li>
<p><code>nginx_version</code></p>
<ul>
<li>Nginx 的版本。</li>
</ul>
</li>
</ul>
<h4 id="nginx-build"><a href="#nginx_build" id="nginx_build"></a> nginx_build</h4>
<ul>
<li>
<p>Nginx 构建的名称。</p>
</li>
<li>
<p><code>address</code></p>
<ul>
<li>接受状态请求的服务器的地址。</li>
</ul>
</li>
</ul>
<h4 id="generation"><a href="#generation" id="generation"></a> generation</h4>
<ul>
<li>配置总数<a href="control.html#reconfiguration">reloads</a>。</li>
</ul>
<h4 id="load-timestamp"><a href="#load_timestamp" id="load_timestamp"></a> load_timestamp</h4>
<ul>
<li>
<p>上一次重新配置的时间，以毫秒为单位，以毫秒为单位。</p>
</li>
<li>
<p><code>timestamp</code></p>
<ul>
<li>自大纪元以来的当前时间(以毫秒为单位)。</li>
</ul>
</li>
</ul>
<h4 id="pid"><a href="#pid" id="pid"></a> pid</h4>
<ul>
<li>处理状态请求的工作进程的 ID。</li>
</ul>
<h4 id="ppid"><a href="#ppid" id="ppid"></a> ppid</h4>
<ul>
<li>启动<a href="#pid">worker process</a>的主进程的 ID。</li>
</ul>
<h4 id="processes"><a href="#processes" id="processes"></a> processes</h4>
<ul>
<li>
<ul>
<li><code>connections</code></li>
</ul>
</li>
<li>
<ul>
<li>
<p><code>accepted</code></p>
</li>
<li>
<p>接受的客户端连接总数。</p>
</li>
</ul>
</li>
<li>
<p><code>dropped</code></p>
<ul>
<li>断开的客户端连接总数。</li>
</ul>
</li>
<li>
<p><code>active</code></p>
<ul>
<li>当前活动的客户端连接数。</li>
</ul>
</li>
<li>
<p><code>idle</code></p>
<ul>
<li>当前空闲的客户端连接数。</li>
</ul>
</li>
</ul>
<h4 id="ssl"><a href="#ssl" id="ssl"></a> ssl</h4>
<ul>
<li>
<ul>
<li>
<p><code>handshakes</code></p>
</li>
<li>
<p>成功的 SSL 握手总数。</p>
</li>
</ul>
</li>
<li>
<p><code>handshakes_failed</code></p>
<ul>
<li>SSL 握手失败的总数。</li>
</ul>
</li>
<li>
<p><code>session_reuses</code></p>
<ul>
<li>SSL 握手期间会话重用的总数。</li>
</ul>
</li>
<li>
<p><code>requests</code></p>
<ul>
<li>
<ul>
<li>
<p><code>total</code></p>
</li>
<li>
<p>客户端请求总数。</p>
</li>
</ul>
</li>
<li>
<p><code>current</code></p>
<ul>
<li>当前的客户端请求数。</li>
</ul>
</li>
</ul>
</li>
</ul>
<h4 id="server-zones"><a href="#server_zones" id="server_zones"></a> server_zones</h4>
<ul>
<li>
<p>对于每个<a href="#status_zone">status_zone</a>：</p>
</li>
<li>
<p><code>processing</code></p>
<ul>
<li>
<p>当前正在处理的客户端请求数。</p>
</li>
<li>
<p><code>requests</code></p>
<ul>
<li>从客户端收到的客户端请求总数。</li>
</ul>
</li>
<li>
<p><code>responses</code></p>
<ul>
<li>
<ul>
<li>
<p><code>total</code></p>
</li>
<li>
<p>发送给客户的响应总数。</p>
</li>
</ul>
</li>
<li>
<p><code>1xx</code> , <code>2xx</code> , <code>3xx</code> , <code>4xx</code> , <code>5xx</code></p>
<ul>
<li>状态码为 1xx，2xx，3xx，4xx 和 5xx 的响应数。</li>
</ul>
</li>
</ul>
</li>
</ul>
</li>
</ul>
<h4 id="discarded"><a href="#discarded" id="discarded"></a> discarded</h4>
<pre><code class="hljs language-shell"> - The total number of requests completed without sending a response\.
</code></pre>
<ul>
<li>
<p><code>received</code></p>
<ul>
<li>从客户端收到的字节总数。</li>
</ul>
</li>
<li>
<p><code>sent</code></p>
<ul>
<li>发送给客户端的字节总数。</li>
</ul>
</li>
</ul>
<h4 id="slabs"><a href="#slabs" id="slabs"></a> slabs</h4>
<ul>
<li>
<p>对于使用平板分配器的每个共享内存区域：</p>
</li>
<li>
<p><code>pages</code></p>
<ul>
<li>
<ul>
<li>
<p><code>used</code></p>
</li>
<li>
<p>当前已使用的内存页数。</p>
</li>
</ul>
</li>
<li>
<p><code>free</code></p>
<ul>
<li>当前的可用内存页数。</li>
</ul>
</li>
<li>
<p><code>slots</code></p>
<ul>
<li>对于每种内存插槽大小(8、16、32、64、128 等)，提供以下数据：</li>
</ul>
</li>
</ul>
</li>
<li>
<p><code>used</code></p>
<pre><code class="hljs language-shell"> - The current number of used memory slots\.
</code></pre>
<ul>
<li>
<p><code>free</code></p>
<ul>
<li>当前的可用内存插槽数。</li>
</ul>
</li>
<li>
<p><code>reqs</code></p>
<ul>
<li>分配指定大小的内存的总尝试次数。</li>
</ul>
</li>
<li>
<p><code>fails</code></p>
<ul>
<li>尝试分配指定大小的内存失败的次数。</li>
</ul>
</li>
</ul>
</li>
</ul>
<h4 id="upstreams"><a href="#upstreams" id="upstreams"></a> upstreams</h4>
<ul>
<li>对于每个<a href="http-ngx_http_upstream_module.html#zone">dynamically configurable</a> <a href="http-ngx_http_upstream_module.html#upstream">group</a>，提供以下数据：</li>
</ul>
<h4 id="peers"><a href="#peers" id="peers"></a> peers</h4>
<pre><code class="hljs language-shell"> - For each [server](http-ngx_http_upstream_module.html#server), the following data are provided: 
</code></pre>
<h4 id="id"><a href="#id" id="id"></a> id</h4>
<pre><code class="hljs language-shell">   - The ID of the server\.

 - `server`

   - An [address](http-ngx_http_upstream_module.html#server) of the server\.
</code></pre>
<h4 id="name"><a href="#name" id="name"></a> name</h4>
<pre><code class="hljs language-shell">   - The name of the server specified in the [server](http-ngx_http_upstream_module.html#server) directive\.
</code></pre>
<h4 id="service"><a href="#service" id="service"></a> service</h4>
<pre><code class="hljs language-shell">   - The [service](http-ngx_http_upstream_module.html#service) parameter value of the [server](http-ngx_http_upstream_module.html#server) directive\.

 - `backup`

   - A boolean value indicating whether the server is a [backup](http-ngx_http_upstream_module.html#backup) server\.

 - `weight`

   - [Weight](http-ngx_http_upstream_module.html#weight) of the server\.
</code></pre>
<h4 id="state"><a href="#state" id="state"></a> state</h4>
<pre><code class="hljs language-shell">   - Current state, which may be one of &quot;  `up` &quot;, &quot;  `draining` &quot;, &quot;  `down` &quot;, &quot;  `unavail` &quot;, &quot;  `checking` &quot;, or &quot;  `unhealthy` &quot;\.

 - `active`

   - The current number of active connections\.
</code></pre>
<h4 id="max-conns"><a href="#max_conns" id="max_conns"></a> max_conns</h4>
<pre><code class="hljs language-shell">   - The [max_conns](http-ngx_http_upstream_module.html#max_conns) limit for the server\.

 - `requests`

   - The total number of client requests forwarded to this server\.

 - `responses`

   - - `total`

     - The total number of responses obtained from this server\.

   - `1xx` ,  `2xx` ,  `3xx` ,  `4xx` ,  `5xx`

     - The number of responses with status codes 1xx, 2xx, 3xx, 4xx, and 5xx\.

 - `sent`

   - The total number of bytes sent to this server\.

 - `received`

   - The total number of bytes received from this server\.

 - `fails`

   - The total number of unsuccessful attempts to communicate with the server\.

 - `unavail`

   - How many times the server became unavailable for client requests \(state &quot;  `unavail` &quot;\) due to the number of unsuccessful attempts reaching the [max_fails](http-ngx_http_upstream_module.html#max_fails) threshold\.

 - `health_checks`

   - - `checks`

     - The total number of [health check](http-ngx_http_upstream_hc_module.html#health_check) requests made\.

   - `fails`

     - The number of failed health checks\.

   - `unhealthy`

     - How many times the server became unhealthy \(state &quot;  `unhealthy` &quot;\)\.

   - `last_passed`

     - Boolean indicating if the last health check request was successful and passed [tests](http-ngx_http_upstream_hc_module.html#match)\.

 - `downtime`

   - Total time the server was in the &quot;  `unavail` &quot;, &quot;  `checking` &quot;, and &quot;  `unhealthy` &quot; states\.

 - `downstart`

   - The time \(in milliseconds since Epoch\) when the server became &quot;  `unavail` &quot;, &quot;  `checking` &quot;, or &quot;  `unhealthy` &quot;\.
</code></pre>
<h4 id="selected"><a href="#selected" id="selected"></a> selected</h4>
<pre><code class="hljs language-shell">   - The time \(in milliseconds since Epoch\) when the server was last selected to process a request \(1\.7\.5\)\.
</code></pre>
<h4 id="header-time"><a href="#header_time" id="header_time"></a> header_time</h4>
<pre><code class="hljs language-shell">   - The average time to get the [response header](http-ngx_http_upstream_module.html#var_upstream_header_time) from the server \(1\.7\.10\)\. Prior to version 1\.11\.6, the field was available only when using the [least_time](http-ngx_http_upstream_module.html#least_time) load balancing method\.
</code></pre>
<h4 id="response-time"><a href="#response_time" id="response_time"></a> response_time</h4>
<pre><code class="hljs language-shell">   - The average time to get the [full response](http-ngx_http_upstream_module.html#var_upstream_response_time) from the server \(1\.7\.10\)\. Prior to version 1\.11\.6, the field was available only when using the [least_time](http-ngx_http_upstream_module.html#least_time) load balancing method\.
</code></pre>
<ul>
<li>
<p><code>keepalive</code></p>
<ul>
<li>当前空闲的<a href="http-ngx_http_upstream_module.html#keepalive">keepalive</a>连接数。</li>
</ul>
</li>
</ul>
<h4 id="zombies"><a href="#zombies" id="zombies"></a> zombies</h4>
<pre><code class="hljs language-shell"> - The current number of servers removed from the group but still processing active client requests\.
</code></pre>
<h4 id="zone"><a href="#zone" id="zone"></a> zone</h4>
<pre><code class="hljs language-shell"> - The name of the shared memory [zone](http-ngx_http_upstream_module.html#zone) that keeps the group's configuration and run\-time state\.
</code></pre>
<h4 id="queue"><a href="#queue" id="queue"></a> queue</h4>
<pre><code class="hljs language-shell"> - For the requests [queue](http-ngx_http_upstream_module.html#queue), the following data are provided: 
</code></pre>
<ul>
<li>
<p><code>size</code></p>
<pre><code class="hljs language-shell"> - The current number of requests in the queue\.
</code></pre>
</li>
</ul>
<h4 id="max-size"><a href="#max_size" id="max_size"></a> max_size</h4>
<pre><code class="hljs language-shell">   - The maximum number of requests that can be in the queue at the same time\.

 - `overflows`

   - The total number of requests rejected due to the queue overflow\.
</code></pre>
<h4 id="caches"><a href="#caches" id="caches"></a> caches</h4>
<ul>
<li>
<p>对于每个缓存(由<a href="http-ngx_http_proxy_module.html#proxy_cache_path">proxy_cache_path</a>等配置)：</p>
</li>
<li>
<p><code>size</code></p>
<ul>
<li>
<p>当前缓存的大小。</p>
</li>
<li>
<p><code>max_size</code></p>
<ul>
<li>配置中指定的最大缓存大小限制。</li>
</ul>
</li>
<li>
<p><code>cold</code></p>
<ul>
<li>一个布尔值，指示“缓存加载器”进程是否仍在将数据从磁盘加载到缓存中。</li>
</ul>
</li>
<li>
<p><code>hit</code> , <code>stale</code> , <code>updating</code> , <code>revalidated</code></p>
<ul>
<li>
<ul>
<li>
<p><code>responses</code></p>
</li>
<li>
<p>从缓存读取的响应总数(由于<a href="http-ngx_http_proxy_module.html#proxy_cache_use_stale">proxy_cache_use_stale</a>之类的命中或过期响应)。</p>
</li>
</ul>
</li>
<li>
<p><code>bytes</code></p>
<ul>
<li>从缓存读取的字节总数。</li>
</ul>
</li>
</ul>
</li>
<li>
<p><code>miss</code> , <code>expired</code> , <code>bypass</code></p>
<ul>
<li>
<ul>
<li>
<p><code>responses</code></p>
</li>
<li>
<p>未从缓存中获取的响应总数(由于<a href="http-ngx_http_proxy_module.html#proxy_cache_bypass">proxy_cache_bypass</a>等导致丢失，过期或绕过)。</p>
</li>
</ul>
</li>
<li>
<p><code>bytes</code></p>
<ul>
<li>从代理服务器读取的字节总数。</li>
</ul>
</li>
<li>
<p><code>responses_written</code></p>
<ul>
<li>写入缓存的响应总数。</li>
</ul>
</li>
<li>
<p><code>bytes_written</code></p>
<ul>
<li>写入缓存的总字节数。</li>
</ul>
</li>
</ul>
</li>
</ul>
</li>
</ul>
<h4 id="stream"><a href="#stream" id="stream"></a> stream</h4>
<ul>
<li></li>
<li>
<p><code>processing</code></p>
<ul>
<li>The number of client connections that are currently being processed.</li>
</ul>
</li>
<li>
<p><code>connections</code></p>
<ul>
<li>客户端接受的连接总数。</li>
</ul>
</li>
</ul>
<h4 id="sessions"><a href="#sessions" id="sessions"></a> sessions</h4>
<pre><code class="hljs language-shell">   - - `total`

     - The total number of completed client sessions\.

   - `2xx` ,  `4xx` ,  `5xx`

     - The number of sessions completed with [status codes](stream-ngx_stream_core_module.html#var_status) 2xx, 4xx, or 5xx\.
</code></pre>
<h4 id="discarded-1"><a href="#stream_discarded" id="stream_discarded"></a> discarded</h4>
<pre><code class="hljs language-shell">   - The total number of connections completed without creating a session\.

 - `received`

   - The total number of bytes received from clients\.

 - `sent`

   - The total number of bytes sent to clients\.
</code></pre>
<h4 id="upstreams-1"><a href="#stream_upstreams" id="stream_upstreams"></a> upstreams</h4>
<pre><code class="hljs language-shell"> - For each [dynamically configurable](stream-ngx_stream_upstream_module.html#zone) [group](stream-ngx_stream_upstream_module.html#upstream), the following data are provided: 
</code></pre>
<ul>
<li>
<p><code>peers</code></p>
<pre><code class="hljs language-shell"> - For each [server](stream-ngx_stream_upstream_module.html#server) the following data are provided: 
</code></pre>
</li>
<li>
<p><code>id</code></p>
<pre><code class="hljs language-shell">   - The ID of the server\.

 - `server`

   - An [address](stream-ngx_stream_upstream_module.html#server) of the server\.
</code></pre>
</li>
</ul>
<h4 id="name-1"><a href="#stream_name" id="stream_name"></a> name</h4>
<pre><code class="hljs language-shell">     - The name of the server specified in the [server](stream-ngx_stream_upstream_module.html#server) directive\.
</code></pre>
<h4 id="service-1"><a href="#stream_service" id="stream_service"></a> service</h4>
<pre><code class="hljs language-shell">     - The [service](stream-ngx_stream_upstream_module.html#service) parameter value of the [server](stream-ngx_stream_upstream_module.html#server) directive\.

   - `backup`

     - A boolean value indicating whether the server is a [backup](stream-ngx_stream_upstream_module.html#backup) server\.

   - `weight`

     - [Weight](stream-ngx_stream_upstream_module.html#weight) of the server\.

   - `state`

     - Current state, which may be one of &quot;  `up` &quot;, &quot;  `down` &quot;, &quot;  `unavail` &quot;, &quot;  `checking` &quot;, or &quot;  `unhealthy` &quot;\.

   - `active`

     - The current number of connections\.

   - `max_conns`

     - The [max_conns](stream-ngx_stream_upstream_module.html#max_conns) limit for the server\.

   - `connections`

     - The total number of client connections forwarded to this server\.

   - `connect_time`

     - The average time to connect to the upstream server\. Prior to version 1\.11\.6, the field was available only when using the [least_time](stream-ngx_stream_upstream_module.html#least_time) load balancing method\.

   - `first_byte_time`

     - The average time to receive the first byte of data\. Prior to version 1\.11\.6, the field was available only when using the [least_time](stream-ngx_stream_upstream_module.html#least_time) load balancing method\.

   - `response_time`

     - The average time to receive the last byte of data\. Prior to version 1\.11\.6, the field was available only when using the [least_time](stream-ngx_stream_upstream_module.html#least_time) load balancing method\.

   - `sent`

     - The total number of bytes sent to this server\.

   - `received`

     - The total number of bytes received from this server\.

   - `fails`

     - The total number of unsuccessful attempts to communicate with the server\.

   - `unavail`

     - How many times the server became unavailable for client connections \(state &quot;  `unavail` &quot;\) due to the number of unsuccessful attempts reaching the [max_fails](stream-ngx_stream_upstream_module.html#max_fails) threshold\.

   - `health_checks`

     - - `checks`

       - The total number of [health check](stream-ngx_stream_upstream_hc_module.html#health_check) requests made\.

     - `fails`

       - The number of failed health checks\.

     - `unhealthy`

       - How many times the server became unhealthy \(state &quot;  `unhealthy` &quot;\)\.

     - `last_passed`

       - Boolean indicating if the last health check request was successful and passed [tests](stream-ngx_stream_upstream_hc_module.html#match)\.

   - `downtime`

     - Total time the server was in the &quot;  `unavail` &quot;, &quot;  `checking` &quot;, and &quot;  `unhealthy` &quot; states\.

   - `downstart`

     - The time \(in milliseconds since Epoch\) when the server became &quot;  `unavail` &quot;, &quot;  `checking` &quot;, or &quot;  `unhealthy` &quot;\.

   - `selected`

     - The time \(in milliseconds since Epoch\) when the server was last selected to process a connection\.

 - `zombies`

   - The current number of servers removed from the group but still processing active client connections\.

 - `zone`

   - The name of the shared memory [zone](stream-ngx_stream_upstream_module.html#zone) that keeps the group's configuration and run\-time state\.
</code></pre>
<p><a href="" id="compatibility"></a></p>
<h4 id="compatibility"><a href="#compatibility" id="compatibility"></a>Compatibility</h4>
<ul>
<li>
<p><a href="#status_zone">http</a>和<a href="#zone">stream</a>上游中的<a href="#upstreams">zone</a>字段已添加到<a href="#stream_upstreams">version</a> 8 中。</p>
</li>
<li>
<p><a href="#version">slabs</a>状态数据已添加到<a href="#slabs">version</a> 8.</p>
</li>
<li>
<p><a href="#version">checking</a>状态已添加到<a href="#state">version</a> 8.</p>
</li>
<li>
<p><a href="#version">version</a> 8 中添加了<a href="#name">http</a>和<a href="#service">stream</a>上游中的<a href="#upstreams">name</a>和<a href="#stream_upstreams">service</a>字段。</p>
</li>
<li>
<p><a href="#version">nginx_build</a>和<a href="#nginx_build">ppid</a>字段已在<a href="#ppid">version</a> 8 中添加。</p>
</li>
<li>
<p>流<a href="#version">server_zones</a>中的<a href="#sessions">sessions</a>状态数据和<a href="#stream_discarded">discarded</a>字段已添加到<a href="#stream_server_zones">version</a> 7 中。</p>
</li>
<li>
<p><a href="#version">zombies</a>字段已从<a href="#zombies">version</a> 6 中的 nginx <a href="debugging_log.html">debug</a>版本移动。</p>
</li>
<li>
<p><a href="#version">ssl</a>状态数据已添加到<a href="#ssl">version</a> 6 中。</p>
</li>
<li>
<p><a href="#version">server_zones</a>中的<a href="#discarded">discarded</a>字段已在<a href="#server_zones">version</a> 6 中添加。</p>
</li>
<li>
<p><a href="#version">queue</a>状态数据已添加到<a href="#queue">version</a> 6 中。</p>
</li>
<li>
<p><a href="#version">pid</a>字段已添加到<a href="#pid">version</a> 6 中。</p>
</li>
<li>
<p><a href="#version">upstreams</a>中的服务器列表已移至<a href="#upstreams">version</a> 6 中的<a href="#peers">peers</a>。</p>
</li>
<li>
<p>上游服务器的<code>keepalive</code>字段已在<a href="#version">version</a> 5 中删除。</p>
</li>
<li>
<p><a href="#version">stream</a>状态数据已添加到<a href="#stream">version</a> 5.</p>
</li>
<li>
<p><a href="#version">generation</a>字段已添加到<a href="#generation">version</a> 5 中。</p>
</li>
<li>
<p><a href="#version">processes</a>中的<a href="#respawned">respawned</a>字段是在<a href="#processes">version</a>中添加的。</p>
</li>
<li>
<p><a href="#version">upstreams</a>中的<a href="#header_time">header_time</a>和<a href="#response_time">response_time</a>字段已添加到<a href="#upstreams">version</a> 5 中。</p>
</li>
<li>
<p><a href="#version">upstreams</a>中的<a href="#selected">selected</a>字段已在<a href="#upstreams">version</a> 4 中添加。</p>
</li>
<li>
<p><a href="#version">upstreams</a>中的<a href="#state">draining</a>状态已在<a href="#upstreams">version</a> 4 中添加。</p>
</li>
<li>
<p><a href="#version">upstreams</a>中的<a href="#id">id</a>和<a href="#max_conns">max_conns</a>字段已添加到<a href="#upstreams">version</a> 3 中。</p>
</li>
<li>
<p><a href="#version">caches</a>中的<code>revalidated</code>字段已添加到<a href="#caches">version</a> 3 中。</p>
</li>
<li>
<p><a href="#version">server_zones</a>，<a href="#server_zones">caches</a>和<a href="#caches">load_timestamp</a>状态数据已添加到<a href="#load_timestamp">version</a> 2 中。</p>
</li>
</ul>
</div>
</div>
</section>
<div class="right-sidebar">
<div class="affix"><ins class="adsbygoogle" style="display:block" data-ad-client="ca-pub-6108808167664152" data-ad-slot="3102929424" data-ad-format="auto" data-full-width-responsive="true"></ins>
<script>
     (adsbygoogle = window.adsbygoogle || []).push({});
</script></div>
</div>
</div>
<div class="ft">
<a href="#toolbar-title" id="anchorNavigationExGoTop"><i class="fa fa-arrow-up"></i></a>
<footer class="footer">
<div class="footer__container--normal">
<img alt="扫码关注公众号" title="扫码关注公众号" src="static/picture/qr-code.png" width="170" height="170">
<div class="footer__description--normal">
<p class="paragraph footer__author--normal">Docs4dev<sup class="super">&#xAE;</sup>
</p>
<p class="paragraph footer__quote&#45;&#45;normal">
如果你在使用过程中遇到任何问题，可以在 <a href="javascript:window.open('https://github.com/docs4dev/docs4dev-issues');" target="_blank" rel="noopener noreferrer">这里<i class="fa fa-external-link"></i></a> 提issue。
</p>
<div class="footer__main--normal">
<p class="paragraph footer__main__paragraph--normal copyright" style="color: #666 !important;">
<a href="javascript:window.open('https://beian.miit.gov.cn/');">
蜀ICP备14021783号-6
</a>
</p>
<p class="paragraph footer__main__paragraph--normal copyright" style="color: #666 !important;">
Copyright &#xA9; Docs4dev all
right reserved, powered by <a href="index2.html" target="_blank">Docs4dev</a></p>
</div>
</div>
</div>
<div class="box__issues">
</div>
</footer>
</div>
</div>
</div>
</div>
</div>
<script>
  var hasToc = true;
  /*  var downloadable = /!*false*!/ false;
    var editable = /!*false*!/ false;
    var code = /!*"nginx"*!/ false;
    var version = /!*"current"*!/ false;
    var type = /!*"reference"*!/ false;
    var lang = /!*"zh"*!/ 'en';
    //edit link
    require(["gitbook", "jQuery"], function (gitbook, $) {
      gitbook.events.bind('start', function (e, config) {
        // Add edit toolbar to left
        var chapterId = /!*17792*!/ 0;
        if (downloadable) {
          gitbook.toolbar.createButton({
            icon: 'fa fa-download',
            text: '下载',
            onClick: function () {
              window.open('/download?code=' + code + '&version=' + version + '&type=' + type + '&lang=' + lang);
            }
          });
        }
        if (editable) {
          gitbook.toolbar.createButton({
            icon: 'fa fa-edit',
            text: '编辑此页',
            onClick: function () {
              window.open('/docs/edit?chapterId=' + chapterId + '&lang=' + lang);
            }
          });
        }
      });
    });*/
</script>
<script>
    var code = "nginx";
    var lang = "zh";
  </script>

<script src="static/js/autocomplete-js.js"></script>
<script src="static/js/app.min.js"></script>
<script src="static/js/search.min.js"></script>
</body>
</html>
